package com.guigu.health.service.impl;

import com.guigu.health.dao.SetMealDetailsMapper;
import com.guigu.health.pojo.SetMealDetails;
import com.guigu.health.service.SetMealDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:SetMealDetailsServiceImpl
 * @Description:
 * @Author:longtao
 * @Date:2021/4/1
 * @Version:1.0
 */
@Service("setMealDetailsService")
public class SetMealDetailsServiceImpl implements SetMealDetailsService {

   private SetMealDetailsMapper detailsMapper;
   @Autowired
   @Qualifier(value = "setMealDetailsMapper")
    public void setDetailsMapper(SetMealDetailsMapper detailsMapper) {
        this.detailsMapper = detailsMapper;
    }

    @Override
    public List<SetMealDetails> querySetMealID(Integer id) {

        return detailsMapper.querySetMealID(id);
    }
}
